package com.dmagic.cms.dao;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.dmagic.cms.common.dao.CommonDao;
import com.dmagic.cms.common.query.PageUtil;
import com.dmagic.cms.common.query.QueryUtil;
import com.dmagic.cms.entity.News;

@Component
public class NewsDao extends CommonDao<News, Long> {
    public void searchNews(PageUtil<Map> pageUtil) throws Exception {
        QueryUtil queryUtil = new QueryUtil();
        queryUtil.setQueryKey("getNews_sql");
        queryUtil.setPageUtil(pageUtil);
        queryUtil.combineQueryString();
        super.find(queryUtil);
    }
}
